<% if current_user %>
  <% form_for (@photo, :url => { :action => @save_action }) do |f| %>
    <%= f.error_messages %>

    <p>
      <%= f.label :title %>
      <%= f.text_field :title %>
      </p>

    <p>
      <%= f.label :description %>
      <%= f.text_field :description %>
      </p>

    <p>
    <% if @save_action == 'update' || @photo.last_in_entry? %>
      <%= f.submit "Save" %>
    <% else @save_action == 'sequential_update' %>
      <%= f.submit "Next" %>
    <% end %>
    </p>
  <% end %>
  <%= set_form_focus %>
<% end %>
